package com.anjubao.parking.municipal.user.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 用户余额变动记录
 *
 * @author zhuchunfeng
 */
@Getter
@Setter
@ApiModel("用户余额变动记录")
@Accessors(chain = true)
public class UserBalanceRecordDto{

    @ApiModelProperty("16位用户编号")
    private String userCode;

    @ApiModelProperty(name="type",value = "1:充值 2:消费")
    private Integer type;

    @ApiModelProperty(name="amount",value = "金额")
    private Integer amount;

    @ApiModelProperty(name="tradeOrderId",value = "支付记录ID")
    private String tradeOrderId;

    @ApiModelProperty(name="remark",value = "说明")
    private String remark;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}